//
//  BSObjectRef.m
//  Spriter_forCocs2d
//
//  Created by bean on 13/4/17.
//
//

#import "BSObjectRef.h"

@implementation BSObjectRef
- (id)initWithId:(int)id_
        timeLine:(int)timeline
             key:(int)key
               z:(int)z
{
    self = [super init];
    if (self) {
        m_id = id_;
        m_timeline = timeline;
        m_key = key;
        m_z = z;
    }
    return self;
}
- (int)objectId
{
    return m_id;
}
- (int)timeline
{
    return m_timeline;
}
- (int)key
{
    return m_key;
}
- (int)z
{
    return m_z;
}
- (NSString *)description
{
    return [NSString stringWithFormat:@"obj id = %d, timeline = %d , key id = %d, z = %d",
            m_id, m_timeline, m_key, m_z];
}
@end
